]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quickSettings: Use column spacing not row spacing to calculate width
authorSebastian Keller <skeller@gnome.org>
Sun, 11 Dec 2022 17:27:05 +0000 (18:27 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 12 Dec 2022 17:14:08 +0000 (17:14 +0000)
This did not have any not have any noticeable effect, because both are
the same size in the default theme.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2577>

js/ui/quickSettings.js

index 19f9a3ca414ab23b0e5204bf5da783e5584d13fd..e3bbe21c0cb029b0e15e797e32058507571546dc 100644 (file)
@@ -542,7 +542,7 @@ const QuickSettingsLayout = GObject.registerClass({
             ? this._overlay.get_preferred_height(-1)
             : [0, 0];
 
-        const availWidth = box.get_width() - (this.nColumns - 1) * this.row_spacing;
+        const availWidth = box.get_width() - (this.nColumns - 1) * this.column_spacing;
         const childWidth = availWidth / this.nColumns;
 
         this._overlay?.allocate_available_size(0, 0, box.get_width(), box.get_height());